
#ifndef _LED_H_
#define _LED_H_

#include <stdint.h>
#include "LedId.h"

#define Led_Mask(id)		(1u << (id))
#define Led_MaskAll			(Led_Mask(LedId_White)|Led_Mask(LedId_Greent))

enum {
	LED_S_OFF = 0,
	LED_S_ON
};

void Led_Init(void);
void Led_On(LedId_T Id);
void Led_Off(LedId_T Id);
void Led_Set(LedId_T Id, uint8_t state);
void Led_Toggle(LedId_T Id);
void Led_Flash(LedId_T Id);
int Led_State(LedId_T Id);
int Led_Check(LedId_T id);
void Led_Lock(LedId_T Id);
void Led_Unlock(LedId_T Id);

//同步设置
void Led_MultSet(uint8_t ledMap, uint8_t state);

//同步闪烁
void Led_MultFlashSync(uint8_t ledMap);

//以某个间隔同步闪烁
void Led_MultFlashFreq(uint8_t ledMap, uint16_t period);

void Led_MultLock(uint8_t ledMap);

void Led_MultUnLock(uint8_t ledMap);


#endif

